package com.bunnyhsu;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;

@SpringBootApplication
@ServletComponentScan
@MapperScan("com.bunnyhsu.mapper") //配置扫描mapper接口的地址

public class BootdemoApplication implements CommandLineRunner {

	public static void main(String[] args) {
//		SpringApplication.run(BootdemoApplication.class, args);
		SpringApplication springApplication = new SpringApplication(BootdemoApplication.class);
		springApplication.run(args);

	}
	@Override
	public void run(String... args) throws Exception {
		System.out.println("启动完成！");
	}
}
